Leave feedback for the driver

There’s an option to rate and comment an order that isn’t older than 24 hours. Otherwise a Feedback has expired error is displayed.

Request syntax

POST http://b2b-api.go.yandex.ru/integration/2.0/orders/feedback?order_id={order ID} 

Request headers

  • Authorization: Bearer <OAuth-token>
    OAuth access token. The steps to get a token are described in Getting started.
  • X-YaTaxi-Selected-Corp-Client-Id — client ID from the account. Required if multiple clients are available using the token.

Request parameters

The request has one required parameter:

  • order_id: ID of the order.

Request body

Data is passed in a JSON format:

Field Description Format Required
rating Order grade. An integer number between 1 and 5. Number Yes
msg Comment for the completed order. String No

Request example

POST http://b2b-api.go.yandex.ru/integration/2.0/orders/feedback?order_id=191...280' 
... 
Authorization: Bearer <OAuth-token>
X-YaTaxi-Selected-Corp-Client-Id: <client-id>

  { 
    "rating": 5, 
    "msg": "good driver" 
  } 

Response example

If the request was successful, returns an empty response with code 200.

Response codes

A response to this request may contain the following HTTP codes:

  • 200 — request completed successfully.
  • 400 — request contained an unknown parameter or a parameter with an invalid value.
  • 403:
    • SELECT_CLIENT_HEADER_REQUIRED: the request did not pass the header X-YaTaxi-Selected-Corp-Client-Id (returned if more than one client is available for the token).
    • SELECTED_CLIENT_ACCESS_DENIED: the header X-YaTaxi-Selected-Corp-Client-Id contains the client's ID, which this login does not have access to.
  • 404 — order not found.
  • 409 — a conflict occurred when saving the grade.
  • 410 — the order was created over 24 hours ago, cannot be rated.